package cn.stylefeng.guns.modular.order.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.order.entity.OrderOutpreparePlatooncar;
import cn.stylefeng.guns.modular.order.model.params.OrderOutpreparePlatooncarParam;
import cn.stylefeng.guns.modular.order.model.result.OrderOutpreparePlatooncarResult;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 出库订单预排车表 服务类
 * </p>
 *
 * @author zhucx
 * @since 2023-11-08
 */
public interface OrderOutpreparePlatooncarService extends IService<OrderOutpreparePlatooncar> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2023-11-08
     */
    void add(OrderOutpreparePlatooncarParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2023-11-08
     */
    void delete(OrderOutpreparePlatooncarParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2023-11-08
     */
    void update(OrderOutpreparePlatooncarParam param);


    void updateByDianHua(String stat, String sijidianhua);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-11-08
     */
    OrderOutpreparePlatooncarResult findBySpec(OrderOutpreparePlatooncarParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2023-11-08
     */
    List<OrderOutpreparePlatooncarResult> findListBySpec(OrderOutpreparePlatooncarParam param, Long operateId);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-11-08
     */
    LayuiPageInfo findPageBySpec(OrderOutpreparePlatooncarParam param, String condition, Long operateId);

}
